//
//  TestMKUIElementViewMKUIAlertAction.h
//  MKUITestApp
//
//  Created by 苏尚进 on 2023/11/15.
//  Copyright © 2023 moon. All rights reserved.
//

#import <MKUI/MKUI.h>

#import "ListViewController.h"

NS_ASSUME_NONNULL_BEGIN

@interface TestMKUIElementViewMKUIAlertAction : MKUIElementViewDetail
@property(nonatomic,strong) MKUIAlertAction *alertAction;
@property(nonatomic,copy,nullable) void(^whenDone)(__kindof TestMKUIElementViewMKUIAlertAction *el);//选项变更的回调
- (void)beginTextInput;//开始进行输入
- (UIView *)deleteButtonWithAction:(void(^)(TestMKUIElementViewMKUIAlertAction *el))handler;
@end

@interface MKUIAlertAction(Test)
@property(nonatomic,readonly) NSString *testDescription;
@property(nonatomic,readonly) NSDictionary *testJsonValue;
+ (MKUIAlertAction *)actionWithTestJsonValue:(NSDictionary *)json;
@end

@interface TestMKUIAlertActionParam : ListViewController
@property(nonatomic,strong) MKUIAlertAction *alertAction;
@property(nonatomic,copy) void(^whenDone)(MKUIAlertAction *alertAction);
@end

NS_ASSUME_NONNULL_END

NS_ASSUME_NONNULL_BEGIN
@interface TestMKUIElementListViewCellMKUIAlertAction : MKUIElementListViewCellBase
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-property-synthesis"
@property(nonatomic,readonly,nullable) __kindof TestMKUIElementViewMKUIAlertAction *elementView;
#pragma clang diagnostic pop
@end
NS_ASSUME_NONNULL_END

